home *** CD-ROM | disk | FTP | other *** search
/ All for Cell Phones: Sony Ericsson / Sony-Ericsson 2004.iso / Java / SpruceDriver / SpruceDriver.jar / org / spruce / midp / driver / c.class (.txt) < prev    next >
Encoding:
Java Class File  |  2002-04-05  |  10.0 KB  |  930 lines

  1. package org.spruce.midp.driver;
  2.  
  3. import java.io.IOException;
  4. import javax.microedition.lcdui.Canvas;
  5. import javax.microedition.lcdui.Display;
  6. import javax.microedition.lcdui.Font;
  7. import javax.microedition.lcdui.Graphics;
  8. import javax.microedition.lcdui.Image;
  9. import org.spruce.midp.common.c;
  10.  
  11. // $FF: renamed from: org.spruce.midp.driver.c
  12. final class class_0 extends Canvas implements Runnable {
  13.    // $FF: renamed from: a boolean
  14.    private boolean field_0;
  15.    // $FF: renamed from: b boolean
  16.    private boolean field_1;
  17.    // $FF: renamed from: c int
  18.    private static final int field_2 = 0;
  19.    // $FF: renamed from: d int
  20.    private static final int field_3 = 4210752;
  21.    // $FF: renamed from: e int
  22.    private static final int field_4 = 8421504;
  23.    // $FF: renamed from: f int
  24.    private static final int field_5 = 16777215;
  25.    // $FF: renamed from: g int
  26.    private int field_6;
  27.    // $FF: renamed from: h int
  28.    private int field_7;
  29.    // $FF: renamed from: i int
  30.    private int field_8;
  31.    // $FF: renamed from: j int
  32.    private int field_9;
  33.    // $FF: renamed from: k int
  34.    private int field_10;
  35.    // $FF: renamed from: l int
  36.    private int field_11;
  37.    // $FF: renamed from: m int
  38.    private int field_12;
  39.    // $FF: renamed from: n int
  40.    private int field_13;
  41.    // $FF: renamed from: o int
  42.    private int field_14;
  43.    // $FF: renamed from: p int
  44.    private int field_15;
  45.    // $FF: renamed from: q javax.microedition.lcdui.Image
  46.    private Image field_16;
  47.    // $FF: renamed from: r boolean
  48.    private boolean field_17;
  49.    // $FF: renamed from: s javax.microedition.lcdui.Image
  50.    private Image field_18;
  51.    // $FF: renamed from: t javax.microedition.lcdui.Image
  52.    private Image field_19;
  53.    // $FF: renamed from: u javax.microedition.lcdui.Image[]
  54.    private Image[] field_20;
  55.    // $FF: renamed from: v javax.microedition.lcdui.Image
  56.    private Image field_21;
  57.    // $FF: renamed from: w javax.microedition.lcdui.Image
  58.    private Image field_22;
  59.    // $FF: renamed from: x javax.microedition.lcdui.Image
  60.    private Image field_23;
  61.    // $FF: renamed from: y javax.microedition.lcdui.Image
  62.    private Image field_24;
  63.    // $FF: renamed from: z javax.microedition.lcdui.Image
  64.    private Image field_25;
  65.    // $FF: renamed from: A int
  66.    private int field_26;
  67.    // $FF: renamed from: B int
  68.    private int field_27;
  69.    // $FF: renamed from: C int
  70.    private int field_28;
  71.    // $FF: renamed from: D int
  72.    private int field_29;
  73.    // $FF: renamed from: E javax.microedition.lcdui.Font
  74.    private Font field_30;
  75.    // $FF: renamed from: F org.spruce.midp.driver.b
  76.    private b field_31;
  77.    // $FF: renamed from: G java.lang.Thread
  78.    private Thread field_32;
  79.    // $FF: renamed from: H int
  80.    private int field_33;
  81.    // $FF: renamed from: I int
  82.    private int field_34;
  83.    // $FF: renamed from: J boolean
  84.    private boolean field_35;
  85.    // $FF: renamed from: K boolean
  86.    private boolean field_36;
  87.    // $FF: renamed from: L int[]
  88.    private static final int[] field_37 = new int[]{100, 91, 83, 71, 67, 63, 59, 56, 53, 50, 48, 45, 43, 42};
  89.  
  90.    public class_0(Display var1) {
  91.       boolean var16;
  92.       int var10001;
  93.       label293: {
  94.          label296: {
  95.             var16 = Driver.p;
  96.             super();
  97.             this.field_17 = false;
  98.             this.field_30 = Font.getFont(64, 0, 8);
  99.             this.field_16 = Image.createImage(((Canvas)this).getWidth(), ((Canvas)this).getHeight());
  100.             var10001 = var1.isColor();
  101.             if (!var16) {
  102.                if (var10001 != 0) {
  103.                   break label296;
  104.                }
  105.  
  106.                var10001 = var1.numColors();
  107.             }
  108.  
  109.             if (var16) {
  110.                break label293;
  111.             }
  112.  
  113.             if (var10001 <= 2) {
  114.                var10001 = 1;
  115.                break label293;
  116.             }
  117.          }
  118.  
  119.          var10001 = 0;
  120.       }
  121.  
  122.       this.field_0 = (boolean)var10001;
  123.       var10001 = var1.numColors();
  124.       if (!var16) {
  125.          var10001 = var10001 <= 4 ? 1 : 0;
  126.       }
  127.  
  128.       label297: {
  129.          this.field_1 = (boolean)var10001;
  130.          boolean var10000 = this.field_0;
  131.          if (!var16) {
  132.             if (var10000) {
  133.                this.field_6 = 16777215;
  134.                this.field_7 = 16777215;
  135.                this.field_8 = 0;
  136.                this.field_9 = 0;
  137.                this.field_10 = 16777215;
  138.                this.field_11 = 16777215;
  139.                this.field_12 = 0;
  140.                this.field_13 = 16777215;
  141.                this.field_14 = 16777215;
  142.                this.field_15 = 4210752;
  143.                if (!var16) {
  144.                   break label297;
  145.                }
  146.  
  147.                c.i = !c.i;
  148.             }
  149.  
  150.             var10000 = this.field_1;
  151.          }
  152.  
  153.          if (!var16) {
  154.             if (var10000) {
  155.                this.field_6 = 16777215;
  156.                this.field_7 = 8421504;
  157.                this.field_8 = 8421504;
  158.                this.field_9 = 0;
  159.                this.field_10 = 4210752;
  160.                this.field_11 = 8421504;
  161.                this.field_12 = 4210752;
  162.                this.field_13 = 8421504;
  163.                this.field_14 = 8421504;
  164.                this.field_15 = 4210752;
  165.                if (!var16) {
  166.                   break label297;
  167.                }
  168.             }
  169.  
  170.             var10000 = var1.isColor();
  171.          }
  172.  
  173.          if (var10000) {
  174.             this.field_6 = 12632256;
  175.             this.field_7 = 3199024;
  176.             this.field_8 = 16777215;
  177.             this.field_9 = 8339263;
  178.             this.field_10 = 65535;
  179.             this.field_11 = 16744192;
  180.             this.field_12 = 16711680;
  181.             this.field_13 = 16776960;
  182.             this.field_14 = 16777215;
  183.             this.field_15 = 16776960;
  184.             if (!var16) {
  185.                break label297;
  186.             }
  187.          }
  188.  
  189.          this.field_6 = 12632256;
  190.          this.field_7 = 8750469;
  191.          this.field_8 = 16777215;
  192.          this.field_9 = 4144959;
  193.          this.field_10 = 6316128;
  194.          this.field_11 = 16777215;
  195.          this.field_12 = 6316128;
  196.          this.field_13 = 14737632;
  197.          this.field_14 = 16777215;
  198.          this.field_15 = 13684944;
  199.       }
  200.  
  201.       label262: {
  202.          class_0 var34;
  203.          label299: {
  204.             byte var2;
  205.             byte var3;
  206.             label260: {
  207.                var2 = 12;
  208.                var3 = 30;
  209.                int var33 = ((Canvas)this).getHeight();
  210.                var10001 = 80;
  211.                if (!var16) {
  212.                   if (var33 <= 80) {
  213.                      var2 = 8;
  214.                      var3 = 18;
  215.                      if (!var16) {
  216.                         break label260;
  217.                      }
  218.                   }
  219.  
  220.                   var34 = this;
  221.                   if (var16) {
  222.                      break label299;
  223.                   }
  224.  
  225.                   var33 = ((Canvas)this).getHeight();
  226.                   var10001 = 60;
  227.                }
  228.  
  229.                if (var33 <= var10001) {
  230.                   var2 = 4;
  231.                   var3 = 10;
  232.                }
  233.             }
  234.  
  235.             this.field_31 = new b(var2, var3);
  236.             this.field_20 = new Image[this.field_31.g];
  237.  
  238.             try {
  239.                var34 = this;
  240.             } catch (IOException var19) {
  241.                var10001 = 0;
  242.                break label262;
  243.             }
  244.          }
  245.  
  246.          try {
  247.             var34.field_25 = Image.createImage(method_8("\u0011\u000bFRD]\u001d\u0018P_Y"));
  248.          } catch (IOException var18) {
  249.             var10001 = 0;
  250.          }
  251.       }
  252.  
  253.       this.field_26 = ((Canvas)this).getWidth() - this.field_25.getWidth();
  254.       this.field_27 = ((Canvas)this).getHeight();
  255.       this.field_28 = 1 * this.field_27 / 2;
  256.       int var4 = this.field_26 - this.field_28;
  257.       int var35 = var4;
  258.       var10001 = 2;
  259.       if (!var16) {
  260.          if (var4 < 2) {
  261.             var4 = 2;
  262.             this.field_28 = this.field_26 - var4;
  263.          }
  264.  
  265.          this.field_29 = var4 / 2;
  266.          var35 = 2 * this.field_28;
  267.          var10001 = this.field_31.h;
  268.       }
  269.  
  270.       int var5 = var35 / var10001;
  271.       int var6 = 4 * var5 / 3;
  272.       a.a(method_8("]\u0019D\u007fY\u0004X") + var6);
  273.       a.a(method_8("]\u0019D\u007fF\u0004X") + var5);
  274.       a.a(method_8("L\u0017WDnIB\u0016") + this.field_28);
  275.       a.a(method_8("Y\nWSBa\u000f\f\u0000") + var4);
  276.       if (!var16) {
  277.          if (var4 <= 0) {
  278.             throw new Error(method_8("P\u0011S\u0000DZ\u0019ZO\u0011M\u0011S\u0000AL\u0002SSZ_\u0014YWP]XAY\\W\u0019DOF\u001e\u0002\u0016PCQ\bYRRT\u0011\u0018\u000e\u001f"));
  279.          }
  280.  
  281.          this.field_18 = this.method_0(this.field_12, 8323072, var5, var6);
  282.          this.field_24 = this.method_0(this.field_13, 8355584, var5, var6);
  283.          this.field_19 = Image.createImage(this.field_26, this.field_27);
  284.       }
  285.  
  286.       label241: {
  287.          Graphics var7;
  288.          label240: {
  289.             label239: {
  290.                var7 = this.field_19.getGraphics();
  291.                var35 = this.field_0;
  292.                if (!var16) {
  293.                   if (var35) {
  294.                      break label239;
  295.                   }
  296.  
  297.                   var35 = this.field_1;
  298.                }
  299.  
  300.                if (!var35) {
  301.                   break label240;
  302.                }
  303.             }
  304.  
  305.             try {
  306.                Image var8;
  307.                int var9;
  308.                int var10;
  309.                label227: {
  310.                   var8 = Image.createImage(method_8("\u0011\u0015QRPM\u000b\u0018P_Y"));
  311.                   var9 = var8.getWidth();
  312.                   var10 = var8.getHeight();
  313.                   int var11 = 0;
  314.                   if (var16) {
  315.                      var35 = 0;
  316.                   } else if (var11 >= this.field_26) {
  317.                      var35 = this.field_0;
  318.                      if (!var16) {
  319.                         break label227;
  320.                      }
  321.                   } else {
  322.                      var35 = 0;
  323.                   }
  324.  
  325.                   label226:
  326.                   while(true) {
  327.                      int var12 = var35;
  328.                      if (var16) {
  329.                         var7.drawImage(var8, var11, var12, 20);
  330.                         var12 += var10;
  331.                      }
  332.  
  333.                      while(true) {
  334.                         while(var12 < this.field_27) {
  335.                            var7.drawImage(var8, var11, var12, 20);
  336.                            var12 += var10;
  337.                         }
  338.  
  339.                         var35 = var11 + var9;
  340.                         if (!var16) {
  341.                            var11 = var35;
  342.                            if (var11 >= this.field_26) {
  343.                               var35 = this.field_0;
  344.                               if (!var16) {
  345.                                  break label226;
  346.                               }
  347.                            } else {
  348.                               var35 = 0;
  349.                            }
  350.                            break;
  351.                         }
  352.  
  353.                         var12 = var35;
  354.                      }
  355.                   }
  356.                }
  357.  
  358.                label316: {
  359.                   if (!var16) {
  360.                      if (var35 == 0) {
  361.                         break label316;
  362.                      }
  363.  
  364.                      var8 = Image.createImage(method_8("\u0011\u0019EPY_\u0014B\u000eAP\u001f"));
  365.                      var9 = var8.getWidth();
  366.                      var10 = var8.getHeight();
  367.                      var35 = this.field_28;
  368.                   }
  369.  
  370.                   Image var30 = Image.createImage(var35, this.field_27);
  371.                   Graphics var13 = var30.getGraphics();
  372.                   int var14 = 0;
  373.                   if (var16 || var14 < this.field_28) {
  374.                      label182:
  375.                      while(true) {
  376.                         int var15 = 0;
  377.                         if (var16) {
  378.                            var13.drawImage(var8, var14, var15, 20);
  379.                            var15 += var10;
  380.                         }
  381.  
  382.                         while(true) {
  383.                            while(var15 < this.field_27) {
  384.                               var13.drawImage(var8, var14, var15, 20);
  385.                               var15 += var10;
  386.                            }
  387.  
  388.                            var35 = var14 + var9;
  389.                            if (!var16) {
  390.                               var14 = var35;
  391.                               if (var14 >= this.field_28) {
  392.                                  break label182;
  393.                               }
  394.                               break;
  395.                            }
  396.  
  397.                            var15 = var35;
  398.                         }
  399.                      }
  400.                   }
  401.  
  402.                   var7.drawImage(var30, this.field_29, 0, 20);
  403.                   if (!var16) {
  404.                      break label241;
  405.                   }
  406.                }
  407.  
  408.                var7.setColor(this.field_6);
  409.                var7.fillRect(this.field_29, 0, this.field_28, this.field_27);
  410.                break label241;
  411.             } catch (IOException var17) {
  412.                if (!var16) {
  413.                   break label241;
  414.                }
  415.             }
  416.          }
  417.  
  418.          var7.setColor(this.field_7);
  419.          var7.fillRect(0, 0, this.field_26, this.field_27);
  420.          var7.setColor(this.field_6);
  421.          var7.fillRect(this.field_29, 0, this.field_28, this.field_27);
  422.       }
  423.  
  424.       label125: {
  425.          label309: {
  426.             var35 = this.field_28;
  427.             if (!var16) {
  428.                if (var35 >= 45) {
  429.                   break label309;
  430.                }
  431.  
  432.                var35 = this.field_0;
  433.             }
  434.  
  435.             if (var16) {
  436.                break label125;
  437.             }
  438.  
  439.             if (var35 != 0) {
  440.                var35 = 1;
  441.                break label125;
  442.             }
  443.          }
  444.  
  445.          var35 = 2;
  446.       }
  447.  
  448.       int var25 = var35;
  449.       int var26 = 0;
  450.       Graphics var20;
  451.       int var27;
  452.       if (var16) {
  453.          this.field_20[var26] = Image.createImage(var25, this.field_27);
  454.          var20 = this.field_20[var26].getGraphics();
  455.          var20.setColor(this.field_6);
  456.          var20.fillRect(0, 0, var25, this.field_27);
  457.          var20.setColor(this.field_8);
  458.          var27 = -((Canvas)this).getHeight();
  459.          if (var16) {
  460.          }
  461.       } else if (var26 >= this.field_20.length) {
  462.          var27 = 3 * var5 / 4;
  463.          this.field_21 = Image.createImage(var27, var27);
  464.          Graphics var21 = this.field_21.getGraphics();
  465.          var21.setColor(this.field_6);
  466.          var21.fillRect(0, 0, var27, var27);
  467.          var21.setColor(this.field_9);
  468.          var21.fillArc(0, 0, var27, var27, 0, 360);
  469.          int var28 = 3 * var5 / 4;
  470.          this.field_22 = Image.createImage(var28, var28);
  471.          Graphics var22 = this.field_22.getGraphics();
  472.          var22.setColor(this.field_6);
  473.          var22.fillRect(0, 0, var28, var28);
  474.          var22.setColor(this.field_10);
  475.          var22.fillArc(0, 3, 6, 6, 0, 360);
  476.          var22.fillArc(3, 4, 5, 5, 0, 360);
  477.          var22.fillArc(4, 1, 5, 5, 0, 360);
  478.          int var31 = 3 * var5 / 4;
  479.          this.field_23 = Image.createImage(var31, var31);
  480.          var20 = this.field_23.getGraphics();
  481.          var20.setColor(this.field_6);
  482.          var20.fillRect(0, 0, var31, var31);
  483.          var20.setColor(this.field_11);
  484.          var20.fillArc(0, 0, var31, var31, 0, 360);
  485.          var20.setColor(0);
  486.          var20.drawLine(3, 2, 3, 7);
  487.          var20.drawLine(3, 2, 6, 2);
  488.          var20.drawLine(3, 4, 5, 4);
  489.          this.method_1();
  490.          if (!var16) {
  491.             return;
  492.          }
  493.       } else {
  494.          this.field_20[var26] = Image.createImage(var25, this.field_27);
  495.          var20 = this.field_20[var26].getGraphics();
  496.          var20.setColor(this.field_6);
  497.          var20.fillRect(0, 0, var25, this.field_27);
  498.          var20.setColor(this.field_8);
  499.          var27 = -((Canvas)this).getHeight();
  500.          if (var16) {
  501.          }
  502.       }
  503.  
  504.       while(true) {
  505.          while(var27 < ((Canvas)this).getHeight()) {
  506.             var20.fillRect(0, var27 + var26 * this.field_27 / this.field_31.g, var25, this.field_31.g / 3);
  507.             var27 += this.field_31.g / 2;
  508.          }
  509.  
  510.          ++var26;
  511.          if (var26 >= this.field_20.length) {
  512.             var27 = 3 * var5 / 4;
  513.             this.field_21 = Image.createImage(var27, var27);
  514.             Graphics var23 = this.field_21.getGraphics();
  515.             var23.setColor(this.field_6);
  516.             var23.fillRect(0, 0, var27, var27);
  517.             var23.setColor(this.field_9);
  518.             var23.fillArc(0, 0, var27, var27, 0, 360);
  519.             int var29 = 3 * var5 / 4;
  520.             this.field_22 = Image.createImage(var29, var29);
  521.             Graphics var24 = this.field_22.getGraphics();
  522.             var24.setColor(this.field_6);
  523.             var24.fillRect(0, 0, var29, var29);
  524.             var24.setColor(this.field_10);
  525.             var24.fillArc(0, 3, 6, 6, 0, 360);
  526.             var24.fillArc(3, 4, 5, 5, 0, 360);
  527.             var24.fillArc(4, 1, 5, 5, 0, 360);
  528.             int var32 = 3 * var5 / 4;
  529.             this.field_23 = Image.createImage(var32, var32);
  530.             var20 = this.field_23.getGraphics();
  531.             var20.setColor(this.field_6);
  532.             var20.fillRect(0, 0, var32, var32);
  533.             var20.setColor(this.field_11);
  534.             var20.fillArc(0, 0, var32, var32, 0, 360);
  535.             var20.setColor(0);
  536.             var20.drawLine(3, 2, 3, 7);
  537.             var20.drawLine(3, 2, 6, 2);
  538.             var20.drawLine(3, 4, 5, 4);
  539.             this.method_1();
  540.             if (!var16) {
  541.                return;
  542.             }
  543.          } else {
  544.             this.field_20[var26] = Image.createImage(var25, this.field_27);
  545.             var20 = this.field_20[var26].getGraphics();
  546.             var20.setColor(this.field_6);
  547.             var20.fillRect(0, 0, var25, this.field_27);
  548.             var20.setColor(this.field_8);
  549.             var27 = -((Canvas)this).getHeight();
  550.             if (var16) {
  551.             }
  552.          }
  553.       }
  554.    }
  555.  
  556.    // $FF: renamed from: a (int, int, int, int) javax.microedition.lcdui.Image
  557.    private Image method_0(int var1, int var2, int var3, int var4) {
  558.       Image var5 = Image.createImage(var3, var4);
  559.       Graphics var6 = var5.getGraphics();
  560.       int var7 = Math.max(var3 / 5, 1);
  561.       var6.setColor(var1);
  562.       var6.fillRect(0, 0, var3, var4);
  563.       var6.setColor(this.field_6);
  564.       var6.fillRect(0, 0, var7, var7);
  565.       var6.fillRect(var3 - var7, 0, var7, var7);
  566.       var6.setColor(this.field_14);
  567.       var6.fillRect(var7, 0, var7, var7);
  568.       var6.fillRect(var3 - 2 * var7, 0, var7, var7);
  569.       var6.setColor(0);
  570.       var6.fillRect(2 * var7, 2 * var7, var3 - 4 * var7, 2 * var7);
  571.       var6.fillRect(var7, 3 * var7, var7, 4 * var7);
  572.       var6.fillRect(var3 - 2 * var7, 3 * var7, var7, 4 * var7);
  573.       var6.setColor(var2);
  574.       var6.fillRect(2 * var7, var4 - 2 * var7, var3 - 4 * var7, var7);
  575.       return var5;
  576.    }
  577.  
  578.    public void paint(Graphics var1) {
  579.       if (this.field_17) {
  580.          var1.drawImage(this.field_16, 0, 0, 20);
  581.          this.field_17 = false;
  582.       }
  583.  
  584.    }
  585.  
  586.    // $FF: renamed from: a () void
  587.    private void method_1() {
  588.       boolean var14 = Driver.p;
  589.       Graphics var1 = this.field_16.getGraphics();
  590.       var1.drawImage(this.field_19, 0, 0, 20);
  591.       var1.drawImage(this.field_20[this.field_33], this.field_26 / 2, 0, 17);
  592.       int[] var4 = this.field_31.i();
  593.       int[] var5 = this.field_31.j();
  594.       int var6 = 0;
  595.       if (var14 || var6 < var5.length) {
  596.          do {
  597.             Image var7;
  598.             label102: {
  599.                var7 = null;
  600.                int var10000 = var4[var6];
  601.                byte var10001 = 1;
  602.                if (!var14) {
  603.                   if (var10000 == 1) {
  604.                      var7 = this.field_21;
  605.                      break label102;
  606.                   }
  607.  
  608.                   var10000 = var4[var6];
  609.                   var10001 = 2;
  610.                   if (var14) {
  611.                      if (var10000 == 2) {
  612.                         var7 = this.field_23;
  613.                      }
  614.                      break label102;
  615.                   }
  616.                }
  617.  
  618.                if (var10000 == var10001) {
  619.                   var7 = this.field_22;
  620.                } else if (var4[var6] == -1) {
  621.                   var7 = this.field_23;
  622.                }
  623.             }
  624.  
  625.             if (var7 != null) {
  626.                int var2 = this.method_3(var5[var6]) + this.field_29;
  627.                var1.drawImage(var7, this.method_3(var5[var6]), this.method_4(var6), 3);
  628.             }
  629.  
  630.             ++var6;
  631.          } while(var6 < var5.length);
  632.       }
  633.  
  634.       int[] var16 = this.field_31.k();
  635.       int var8 = 0;
  636.       if (var14) {
  637.          if (var16[var8] >= -this.field_31.g) {
  638.             this.method_2(var1, this.field_24, var16[var8], var8);
  639.             ++var8;
  640.          } else {
  641.             ++var8;
  642.          }
  643.       }
  644.  
  645.       while(true) {
  646.          while(var8 < var16.length) {
  647.             if (var16[var8] >= -this.field_31.g) {
  648.                this.method_2(var1, this.field_24, var16[var8], var8);
  649.                ++var8;
  650.             } else {
  651.                ++var8;
  652.             }
  653.          }
  654.  
  655.          this.method_2(var1, this.field_18, this.field_31.g(), this.field_31.h());
  656.          int var9 = 0;
  657.          class_0 var17 = this;
  658.          if (!var14) {
  659.             label149: {
  660.                if (!var14) {
  661.                   if (this.field_25 != null) {
  662.                      var1.drawImage(this.field_25, ((Canvas)this).getWidth(), ((Canvas)this).getHeight(), 40);
  663.                      var9 = this.field_25.getHeight();
  664.                   }
  665.  
  666.                   var1.setColor(16777215);
  667.                   var1.fillRect(this.field_26, 0, ((Canvas)this).getWidth() - this.field_26, ((Canvas)this).getHeight() - var9);
  668.                   var1.setColor(8323072);
  669.                   var1.setFont(this.field_30);
  670.                   var1.drawString(String.valueOf(this.field_31.l()), ((Canvas)this).getWidth(), 0, 24);
  671.                   var1.setColor(this.field_15);
  672.                   var1.drawLine(0, ((Canvas)this).getHeight(), 0, ((Canvas)this).getHeight() - ((Canvas)this).getHeight() * this.field_31.m() / 700);
  673.                   var17 = this;
  674.                   if (var14) {
  675.                      break label149;
  676.                   }
  677.                }
  678.  
  679.                if (var17.field_34 != 0) {
  680.                   String var10;
  681.                   label52: {
  682.                      if (this.field_34 == 1) {
  683.                         var10 = method_8("q\rB\u0000^XXPUTR");
  684.                         if (!var14) {
  685.                            break label52;
  686.                         }
  687.                      }
  688.  
  689.                      var10 = method_8("|9xg\u0010");
  690.                   }
  691.  
  692.                   Font var11 = Font.getFont(64, 1, 8);
  693.                   var1.setFont(var11);
  694.                   int var15 = this.field_26 / 2;
  695.                   int var3 = ((Canvas)this).getHeight() / 2;
  696.                   var1.setColor(16777215);
  697.                   int var12 = -1;
  698.                   if (!var14 && var12 > 1) {
  699.                      var1.setColor(16711680);
  700.                      var1.drawString(var10, var15, var3, 65);
  701.                      var1.drawString(method_8("y\u0019[E\u0011q\u000eSR"), var15, var3, 17);
  702.                   } else {
  703.                      do {
  704.                         int var13 = -1;
  705.                         if (var14 || var13 <= 1) {
  706.                            do {
  707.                               var1.drawString(var10, var15 + var12, var3 + var13, 65);
  708.                               var1.drawString(method_8("y\u0019[E\u0011q\u000eSR"), var15 + var12, var3 + var13, 17);
  709.                               ++var13;
  710.                            } while(var13 <= 1);
  711.                         }
  712.  
  713.                         ++var12;
  714.                      } while(var12 <= 1);
  715.  
  716.                      var1.setColor(16711680);
  717.                      var1.drawString(var10, var15, var3, 65);
  718.                      var1.drawString(method_8("y\u0019[E\u0011q\u000eSR"), var15, var3, 17);
  719.                   }
  720.                }
  721.  
  722.                var17 = this;
  723.             }
  724.  
  725.             var17.field_17 = true;
  726.             return;
  727.          }
  728.  
  729.          this.method_2(var1, this.field_24, var16[var8], var8);
  730.          ++var8;
  731.       }
  732.    }
  733.  
  734.    // $FF: renamed from: a (javax.microedition.lcdui.Graphics, javax.microedition.lcdui.Image, int, int) void
  735.    private void method_2(Graphics var1, Image var2, int var3, int var4) {
  736.       int var5 = this.method_3(var3);
  737.       int var6 = this.method_4(var4);
  738.       var1.drawImage(var2, var5, var6, 3);
  739.    }
  740.  
  741.    // $FF: renamed from: a (int) int
  742.    private int method_3(int var1) {
  743.       var1 = var1 * this.field_28 / this.field_31.h;
  744.       var1 += this.field_29 + (this.field_28 / this.field_31.h >> 1);
  745.       return var1;
  746.    }
  747.  
  748.    // $FF: renamed from: b (int) int
  749.    private int method_4(int var1) {
  750.       var1 = var1 * this.field_27 / this.field_31.g;
  751.       var1 += this.field_27 / this.field_31.g >> 1;
  752.       return var1;
  753.    }
  754.  
  755.    public void keyPressed(int var1) {
  756.       boolean var2;
  757.       label68: {
  758.          label63: {
  759.             label62: {
  760.                class_0 var3;
  761.                label61: {
  762.                   label69: {
  763.                      var2 = Driver.p;
  764.                      var10000 = this.field_35;
  765.                      if (!var2) {
  766.                         if (var10000 != 0) {
  767.                            return;
  768.                         }
  769.  
  770.                         var10000 = this.field_34;
  771.                         if (var2) {
  772.                            break label69;
  773.                         }
  774.                      }
  775.  
  776.                      if (var10000 != 0) {
  777.                         return;
  778.                      }
  779.  
  780.                      var3 = this;
  781.                      if (var2) {
  782.                         break label61;
  783.                      }
  784.  
  785.                      var10000 = ((Canvas)this).getGameAction(var1);
  786.                   }
  787.  
  788.                   switch (var10000) {
  789.                      case 1:
  790.                         break label63;
  791.                      case 2:
  792.                         this.field_31.a();
  793.                         this.method_1();
  794.                         var3 = this;
  795.                         break;
  796.                      case 3:
  797.                      case 4:
  798.                      default:
  799.                         return;
  800.                      case 5:
  801.                         break label62;
  802.                      case 6:
  803.                         break label68;
  804.                   }
  805.                }
  806.  
  807.                ((Canvas)var3).repaint();
  808.                if (!var2) {
  809.                   return;
  810.                }
  811.             }
  812.  
  813.             this.field_31.b();
  814.             this.method_1();
  815.             ((Canvas)this).repaint();
  816.             if (!var2) {
  817.                return;
  818.             }
  819.          }
  820.  
  821.          class_0 var4 = this;
  822.          if (!var2) {
  823.             if (!this.field_31.c()) {
  824.                return;
  825.             }
  826.  
  827.             this.method_1();
  828.             var4 = this;
  829.          }
  830.  
  831.          ((Canvas)var4).repaint();
  832.          if (!var2) {
  833.             return;
  834.          }
  835.       }
  836.  
  837.       class_0 var5 = this;
  838.       if (!var2) {
  839.          if (!this.field_31.d()) {
  840.             return;
  841.          }
  842.  
  843.          this.method_1();
  844.          var5 = this;
  845.       }
  846.  
  847.       ((Canvas)var5).repaint();
  848.    }
  849.  
  850.    public void keyRepeated(int var1) {
  851.       this.keyPressed(var1);
  852.    }
  853.  
  854.    public void run() {
  855.       // $FF: Couldn't be decompiled
  856.    }
  857.  
  858.    // $FF: renamed from: b () void
  859.    public void method_5() {
  860.       this.field_35 = false;
  861.       this.field_32 = new Thread(this);
  862.       this.field_32.start();
  863.    }
  864.  
  865.    // $FF: renamed from: a (boolean) void
  866.    public void method_6(boolean var1) {
  867.       this.field_35 = var1;
  868.    }
  869.  
  870.    // $FF: renamed from: c () void
  871.    public void method_7() {
  872.       this.field_36 = true;
  873.    }
  874.  
  875.    // $FF: renamed from: a (java.lang.String) java.lang.String
  876.    private static String method_8(String var0) {
  877.       char[] var1 = var0.toCharArray();
  878.       int var2 = var1.length;
  879.       int var3 = 0;
  880.       char[] var10000;
  881.       int var10001;
  882.       if (var2 <= 1) {
  883.          var10000 = var1;
  884.          var10001 = var3;
  885.       } else {
  886.          if (var3 >= var2) {
  887.             return new String(var1);
  888.          }
  889.  
  890.          var10000 = var1;
  891.          var10001 = var3;
  892.       }
  893.  
  894.       while(true) {
  895.          char var10002 = var10000[var10001];
  896.          byte var10003;
  897.          switch (var3 % 5) {
  898.             case 0:
  899.                var10003 = 62;
  900.                break;
  901.             case 1:
  902.                var10003 = 120;
  903.                break;
  904.             case 2:
  905.                var10003 = 54;
  906.                break;
  907.             case 3:
  908.                var10003 = 32;
  909.                break;
  910.             default:
  911.                var10003 = 49;
  912.          }
  913.  
  914.          var10000[var10001] = (char)(var10002 ^ var10003);
  915.          ++var3;
  916.          if (var2 == 0) {
  917.             var10000 = var1;
  918.             var10001 = var2;
  919.          } else {
  920.             if (var3 >= var2) {
  921.                return new String(var1);
  922.             }
  923.  
  924.             var10000 = var1;
  925.             var10001 = var3;
  926.          }
  927.       }
  928.    }
  929. }
  930.